package cn.itcast.www.junitTest;

import java.math.BigDecimal;

public class DoubleMinus {

	public static void main(String[] args) {
		System.out.println(2.0 - 1.1); //����ǣ�0.8999999999999999
		System.out.println(new BigDecimal("2.0").subtract(new BigDecimal("1.1")));
		System.out.printf("%.1f", 2.0-1.1);
	}
}
